home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / gfx / pbm / source / jpegv4.lha / makefile.dice < prev    next >
Encoding:
Makefile  |  1994-05-23  |  6.4 KB  |  154 lines

  1. .c.o:   $<
  2.     $(CC) $(CFLAGS) -c $*.c
  3.  
  4. # Makefile for Independent JPEG Group's software
  5.  
  6. # This makefile is suitable for Unix-like systems with ANSI-capable compilers.
  7. # If you have a non-ANSI compiler, makefile.unix is a better starting point.
  8.  
  9. # Read SETUP instructions before saying "make" !!
  10.  
  11. # The name of your C compiler:
  12. CC= dcc
  13.  
  14. # You may need to adjust these cc options:
  15. DEFS=   -DNEED_SIGNAL_CATCHER -DNO_MKTEMP # -DSHORTxSHORT_32
  16. CFLAGS= -E DCC_ERRORS -gs -ms -mRR -r $(DEFS)
  17. # In particular:
  18. #   Add -DBSD if on a pure BSD system (see jinclude.h).
  19. #   Add -DMEM_STATS to enable gathering of memory usage statistics.
  20. #   You may also want to add -DTWO_FILE_COMMANDLINE or -D switches for other
  21. #   symbols listed in jconfig.h, if you prefer not to change jconfig.h.
  22.  
  23. # Link-time cc options:
  24. LDFLAGS= $(CFLAGS) -L/netpbm/amiga dice_stack.o dice_bufsiz.o -lpoolmalloc # -lmpool
  25.  
  26. # To link any special libraries, add the necessary -l commands here.
  27. # In particular, on some versions of HP-UX (and probably other SysV-derived
  28. # systems) there is a faster alternate malloc(3) library that you can use
  29. # by adding "-lmalloc" to this line.
  30. LDLIBS=
  31.  
  32. # miscellaneous OS-dependent stuff
  33. # linker
  34. LN= $(CC)
  35. # file deletion command
  36. RM= delete
  37.  
  38.  
  39. # source files (independently compilable files)
  40. SOURCES= jbsmooth.c jcarith.c jccolor.c jcdeflts.c jcexpand.c jchuff.c \
  41.         jcmain.c jcmaster.c jcmcu.c jcpipe.c jcsample.c jdarith.c jdcolor.c \
  42.         jddeflts.c jdhuff.c jdmain.c jdmaster.c jdmcu.c jdpipe.c jdsample.c \
  43.         jerror.c jquant1.c jquant2.c jfwddct.c jrevdct.c jutils.c jmemmgr.c \
  44.         jrdjfif.c jrdgif.c jrdppm.c jrdrle.c jrdtarga.c jwrjfif.c jwrgif.c \
  45.         jwrppm.c jwrrle.c jwrtarga.c
  46. # virtual source files (not present in distribution file, see SETUP)
  47. VIRTSOURCES= jmemsys.c
  48. # system-dependent implementations of virtual source files
  49. SYSDEPFILES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemdos.h \
  50.         jmemdosa.asm
  51. # files included by source files
  52. INCLUDES= jinclude.h jconfig.h jpegdata.h jversion.h jmemsys.h
  53. # documentation, test, and support files
  54. DOCS= README SETUP USAGE CHANGELOG cjpeg.1 djpeg.1 architecture codingrules
  55. MAKEFILES= makefile.ansi makefile.unix makefile.manx makefile.sas \
  56.         makcjpeg.st makdjpeg.st makljpeg.st makefile.mc5 makefile.mc6 \
  57.         makefile.bcc makefile.mms makefile.vms makvms.opt makefile.dice
  58. OTHERFILES= ansi2knr.c ckconfig.c example.c
  59. TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
  60. DISTFILES= $(DOCS) $(MAKEFILES) $(SOURCES) $(SYSDEPFILES) $(INCLUDES) \
  61.         $(OTHERFILES) $(TESTFILES)
  62. # objectfiles common to cjpeg and djpeg
  63. COMOBJECTS= jutils.o jerror.o jmemmgr.o jmemsys.o
  64. # compression objectfiles
  65. CLIBOBJECTS= jcmaster.o jcdeflts.o jcarith.o jccolor.o jcexpand.o jchuff.o \
  66.         jcmcu.o jcpipe.o jcsample.o jfwddct.o jwrjfif.o jrdgif.o jrdppm.o \
  67.         jrdrle.o jrdtarga.o
  68. COBJECTS= jcmain.o $(CLIBOBJECTS) $(COMOBJECTS)
  69. # decompression objectfiles
  70. DLIBOBJECTS= jdmaster.o jddeflts.o jbsmooth.o jdarith.o jdcolor.o jdhuff.o \
  71.         jdmcu.o jdpipe.o jdsample.o jquant1.o jquant2.o jrevdct.o jrdjfif.o \
  72.         jwrgif.o jwrppm.o jwrrle.o jwrtarga.o
  73. DOBJECTS= jdmain.o $(DLIBOBJECTS) $(COMOBJECTS)
  74. # These objectfiles are included in libjpeg.a
  75. LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
  76.  
  77.  
  78. all: cjpeg djpeg
  79. # By default, libjpeg.a is not built unless you explicitly request it.
  80. # You can add libjpeg.a to the line above if you want it built by default.
  81.  
  82.  
  83. cjpeg: $(COBJECTS)
  84.         $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) $(LDLIBS)
  85.  
  86. djpeg: $(DOBJECTS)
  87.         $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) $(LDLIBS)
  88.  
  89. # libjpeg.a is useful if you are including the JPEG software in a larger
  90. # program; you'd include it in your link, rather than the individual modules.
  91. jpeg.lib: $(LIBOBJECTS)
  92.         -$(RM) jpeg.lib
  93.         join $(LIBOBJECTS) to $@
  94.  
  95. jmemsys.c:  jmemname.c
  96.         copy jmemname.c to jmemsys.c
  97.  
  98. clean:
  99.         -$(RM) \#?.o cjpeg djpeg jpeg.lib DCC_ERRORS testout.\#? jmemsys.c
  100.  
  101. distribute:
  102.         $(RM) jpegsrc.tar*
  103.         tar cvf jpegsrc.tar $(DISTFILES)
  104.         compress -v jpegsrc.tar
  105.  
  106. test:   cjpeg djpeg
  107.         -$(RM) testout.ppm testout.gif testout.jpg
  108.         exec djpeg testorig.jpg >testout.ppm
  109.         exec djpeg -gif testorig.jpg >testout.gif
  110.         exec cjpeg testimg.ppm >testout.jpg
  111.         cmp testimg.ppm testout.ppm
  112.         cmp testimg.gif testout.gif
  113.         cmp testimg.jpg testout.jpg
  114.  
  115.  
  116. jbsmooth.o : jbsmooth.c jinclude.h jconfig.h jpegdata.h
  117. jcarith.o : jcarith.c jinclude.h jconfig.h jpegdata.h
  118. jccolor.o : jccolor.c jinclude.h jconfig.h jpegdata.h
  119. jcdeflts.o : jcdeflts.c jinclude.h jconfig.h jpegdata.h
  120. jcexpand.o : jcexpand.c jinclude.h jconfig.h jpegdata.h
  121. jchuff.o : jchuff.c jinclude.h jconfig.h jpegdata.h
  122. jcmain.o : jcmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  123. jcmaster.o : jcmaster.c jinclude.h jconfig.h jpegdata.h
  124. jcmcu.o : jcmcu.c jinclude.h jconfig.h jpegdata.h
  125. jcpipe.o : jcpipe.c jinclude.h jconfig.h jpegdata.h
  126. jcsample.o : jcsample.c jinclude.h jconfig.h jpegdata.h
  127. jdarith.o : jdarith.c jinclude.h jconfig.h jpegdata.h
  128. jdcolor.o : jdcolor.c jinclude.h jconfig.h jpegdata.h
  129. jddeflts.o : jddeflts.c jinclude.h jconfig.h jpegdata.h
  130. jdhuff.o : jdhuff.c jinclude.h jconfig.h jpegdata.h
  131. jdmain.o : jdmain.c jinclude.h jconfig.h jpegdata.h jversion.h
  132. jdmaster.o : jdmaster.c jinclude.h jconfig.h jpegdata.h
  133. jdmcu.o : jdmcu.c jinclude.h jconfig.h jpegdata.h
  134. jdpipe.o : jdpipe.c jinclude.h jconfig.h jpegdata.h
  135. jdsample.o : jdsample.c jinclude.h jconfig.h jpegdata.h
  136. jerror.o : jerror.c jinclude.h jconfig.h jpegdata.h
  137. jquant1.o : jquant1.c jinclude.h jconfig.h jpegdata.h
  138. jquant2.o : jquant2.c jinclude.h jconfig.h jpegdata.h
  139. jfwddct.o : jfwddct.c jinclude.h jconfig.h jpegdata.h
  140. jrevdct.o : jrevdct.c jinclude.h jconfig.h jpegdata.h
  141. jutils.o : jutils.c jinclude.h jconfig.h jpegdata.h
  142. jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  143. jrdjfif.o : jrdjfif.c jinclude.h jconfig.h jpegdata.h
  144. jrdgif.o : jrdgif.c jinclude.h jconfig.h jpegdata.h
  145. jrdppm.o : jrdppm.c jinclude.h jconfig.h jpegdata.h
  146. jrdrle.o : jrdrle.c jinclude.h jconfig.h jpegdata.h
  147. jrdtarga.o : jrdtarga.c jinclude.h jconfig.h jpegdata.h
  148. jwrjfif.o : jwrjfif.c jinclude.h jconfig.h jpegdata.h
  149. jwrgif.o : jwrgif.c jinclude.h jconfig.h jpegdata.h
  150. jwrppm.o : jwrppm.c jinclude.h jconfig.h jpegdata.h
  151. jwrrle.o : jwrrle.c jinclude.h jconfig.h jpegdata.h
  152. jwrtarga.o : jwrtarga.c jinclude.h jconfig.h jpegdata.h
  153. jmemsys.o : jmemsys.c jinclude.h jconfig.h jpegdata.h jmemsys.h
  154.